#include "Processbar.h"
#include <unistd.h>
void download()
{
  double filesize = 100 * 1024 * 1024 * 1.0;
  double current = 0.0;
  double bandwidth = 1024 *1024*1.0;

  while(current <=filesize){
    processbar(filesize. cirremt);
    current += bandwidth;
    sleep(1);
  }
  printf("download done , filesize: %1.f\n", filesize);
}

int main()
{
  processbar();
}
